import 'package:json_annotation/json_annotation.dart';

part 'avatar.g.dart';

@JsonSerializable()
class Avatar extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'avatar')
  String avatar;

  Avatar(
    this.id,
    this.avatar,
  );

  factory Avatar.fromJson(Map<String, dynamic> srcJson) =>
      _$AvatarFromJson(srcJson);
}
